package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * @author zk
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "处方草稿表")
public class PresHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;

    /**
     * 患者就诊卡id
     */
    @Column(comment = "患者就诊卡id")
    private String patientMedId;

    /**
     * 患者姓名
     */
    @Column(comment = "患者姓名")
    private String patientName;

    /**
     * 患者手机号
     */
    @Column(comment = "患者手机号")
    private String patientPhone;

    /**
     * 患者性别
     */
    @Column(comment = "患者性别")
    private String patientSex;

    /**
     * 患者年龄
     */
    @Column(comment = "患者年龄")
    private String patientAge;

    /**
     * 患者出生日期
     */
    @Column(comment = "患者出生日期")
    private LocalDate birthDate;

    /**
     * 诊断
     */
    @Column(comment = "诊断")
    private String diagnosis;

    /**
     * 科室名
     */
    @Column(comment = "科室名")
    private String departmentName;

    /**
     * 疾病名
     */
    @Column(comment = "疾病名")
    private String diseaseName;

    /**
     * 症状名
     */
    @Column(comment = "症状名")
    private String symptomList;

    /**
     * 关键字拼音搜索
     */
    @Column(comment = "关键字拼音搜索")
    private String pinyin;

    /**
     * 金额
     */
    @Column(comment = "金额")
    private Integer price;

    /**
     * 医生id
     */
    @Column(comment = "医生id")
    private Integer doctorId;

    /**
     * json数据
     */
    @Column(type = MySqlTypeConstant.LONGTEXT, comment = "json数据")
    private String body;

    /**
     * 处方类型 1手动开方 2ai开方
     */
    @Column(comment = "处方类型 1手动开方 2ai开方")
    private Integer type;

    /**
     * 处方草稿状态 1正常 -1删除
     */
    @Column(comment = "处方草稿状态 1正常 -1删除")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间")
    private LocalDateTime updateDate;
}
